<template>
  <div id="map2d"></div>
</template>
<script>
import * as MAPCONFIG from '../utils/mapConfig'
// import * as SERVICE from '../utils/service'
export default {
  name: 'OlMap',
  data() {
    return {}
  },
  mounted() {
    this.$nextTick(() => {
      MAPCONFIG.initOlMap('map2d')
      // SERVICE.sendBookInfo().then((res) => {
      //   console.log(res)
      // })
    })
  },
}
</script>
<style lang="less" scoped>
#map2d {
  // 地图样式
  position: absolute;
  top: 0;
  width: 0;
  width: 100%;
  height: 100%;
}
</style>
